/*
 * @version: v 1.0.0
 * @Author:
 * @Date: 2021-01-02 13:21:37
 * @LastEditors: yangy aidreams@sina.com
 * @LastEditTime: 2023-11-14 15:10:15
 * @FilePath: /qn_mall_frontend/src/icons/index.js
 */
import SvgIcon from "@/components/svgIcon/Index";

const requireAll = (requireContext) =>
  requireContext.keys().map(requireContext);

export default {
  install(app) {
    app.component("svg-icon", SvgIcon);
    // const req = require.context('./svgs/', false, /\.svg$/)
    const req = import.meta.glob("./svgs", { eager: true });
    requireAll(req);
  },
};
